@nice2dev/ui 1.0.27 → 1.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/NiceConfirmDialog-BIppqGad.cjs +1 -0
- package/dist/NiceConfirmDialog-CtU3paTe.js +81 -0
- package/dist/NiceErrorBoundary-C9ZPRC1v.js +695 -0
- package/dist/NiceErrorBoundary-CNsxmX4m.cjs +1 -0
- package/dist/NiceForm-B-T7vnE3.cjs +382 -0
- package/dist/NiceForm-D3g3RUzs.js +5000 -0
- package/dist/NiceModal-Cg7Eo9Ig.cjs +1 -0
- package/dist/NiceModal-IHk7nfRN.js +95 -0
- package/dist/NiceModuleLifecyclePanel-BY3zmDOy.js +7582 -0
- package/dist/NiceModuleLifecyclePanel-Dmbqjb8W.cjs +1 -0
- package/dist/NicePagination-BAxcfqnE.js +171 -0
- package/dist/NicePagination-BONcK9M_.cjs +1 -0
- package/dist/NicePinCodeInput-BDR2PSoo.cjs +696 -0
- package/dist/NicePinCodeInput-xJwHHpeS.js +13102 -0
- package/dist/NiceSavedQueryPanel-CbE-wQLO.js +6893 -0
- package/dist/NiceSavedQueryPanel-DuE2wgV_.cjs +596 -0
- package/dist/NiceWindow--TIJTyxg.cjs +1 -0
- package/dist/NiceWindow-vqhh0tb_.js +1592 -0
- package/dist/charts-C877HM7d.js +4657 -0
- package/dist/charts-CjHdhW3E.cjs +761 -0
- package/dist/charts.cjs +1 -1
- package/dist/charts.mjs +1 -1
- package/dist/core-BbGBF3q0.js +25364 -0
- package/dist/core-DwOyxP1F.cjs +122 -0
- package/dist/data-branching-7B25ogCm.cjs +1 -0
- package/dist/data-branching-B_jX2zDY.js +6133 -0
- package/dist/data-branching.cjs +1 -1
- package/dist/data-branching.mjs +1 -1
- package/dist/data.cjs +1 -1
- package/dist/data.mjs +1 -1
- package/dist/devops-DbKWJZmr.cjs +17 -0
- package/dist/devops-nYQjPDoH.js +7684 -0
- package/dist/devops.cjs +1 -1
- package/dist/devops.mjs +1 -1
- package/dist/editors.cjs +1 -1
- package/dist/editors.mjs +3 -3
- package/dist/feedback.cjs +1 -1
- package/dist/feedback.mjs +15 -14
- package/dist/index-By5F3DMu.js +67607 -0
- package/dist/index-aAc_1dLg.cjs +5518 -0
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +76 -5
- package/dist/index.mjs +986 -985
- package/dist/lazy.cjs +1 -1
- package/dist/lazy.mjs +24 -24
- package/dist/navigation.cjs +1 -1
- package/dist/navigation.d.ts +332 -5
- package/dist/navigation.mjs +4 -4
- package/dist/no-code-C4DPSqYz.cjs +332 -0
- package/dist/no-code-zo1dWOLX.js +7133 -0
- package/dist/no-code.cjs +1 -1
- package/dist/no-code.mjs +1 -1
- package/dist/overlays.cjs +1 -1
- package/dist/overlays.mjs +2 -2
- package/dist/pickerCommons-BRJZMI3n.cjs +1 -0
- package/dist/pickerCommons-DWhw7aWu.js +2043 -0
- package/dist/pickerCommons.css +1 -0
- package/dist/style.css +4 -4
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),C=require("./core-DwOyxP1F.cjs"),d=require("react"),N={info:e.jsx("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"})}),warning:e.jsx("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"})}),error:e.jsx("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"})}),success:e.jsx("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})})},b=({visible:c,message:m,header:o,icon:h,variant:i="warning",acceptLabel:a,rejectLabel:f,onAccept:u,onReject:n,closeOnOverlay:v=!1,closeOnEscape:s=!0,size:x="md",className:g,style:j})=>{const{t}=C.Zt();if(d.useEffect(()=>{if(!c||!s)return;const r=_=>{_.key==="Escape"&&n()};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[c,s,n]),d.useEffect(()=>(c?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[c]),!c)return null;const l=h??N[i],w=a??t("confirm.accept","Yes"),y=f??t("confirm.reject","No");return e.jsx("div",{className:"nice-modal-overlay",onClick:v?n:void 0,children:e.jsxs("div",{className:`nice-confirm nice-confirm--${i} nice-confirm--${x} ${g||""}`,style:j,role:"alertdialog","aria-modal":"true","aria-label":o,"aria-describedby":"nice-confirm-message",onClick:r=>r.stopPropagation(),children:[o&&e.jsx("div",{className:"nice-confirm__header",children:e.jsx("h3",{className:"nice-confirm__title",children:o})}),e.jsxs("div",{className:"nice-confirm__body",children:[l&&e.jsx("div",{className:`nice-confirm__icon nice-confirm__icon--${i}`,children:l}),e.jsx("div",{id:"nice-confirm-message",className:"nice-confirm__message",children:m})]}),e.jsxs("div",{className:"nice-confirm__footer",children:[e.jsx("button",{type:"button",className:"nice-btn nice-btn--ghost nice-btn--md",onClick:n,children:y}),e.jsx("button",{type:"button",className:`nice-btn nice-btn--${i==="error"?"error":"primary"} nice-btn--md`,onClick:u,autoFocus:!0,children:w})]})]})})};exports.NiceConfirmDialog=b;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import { Z as C } from "./core-BbGBF3q0.js";
|
|
3
|
+
import m from "react";
|
|
4
|
+
const z = {
|
|
5
|
+
info: /* @__PURE__ */ e("svg", { width: "28", height: "28", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ e("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z" }) }),
|
|
6
|
+
warning: /* @__PURE__ */ e("svg", { width: "28", height: "28", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ e("path", { d: "M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z" }) }),
|
|
7
|
+
error: /* @__PURE__ */ e("svg", { width: "28", height: "28", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ e("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z" }) }),
|
|
8
|
+
success: /* @__PURE__ */ e("svg", { width: "28", height: "28", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ e("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" }) })
|
|
9
|
+
}, E = ({
|
|
10
|
+
visible: i,
|
|
11
|
+
message: a,
|
|
12
|
+
header: o,
|
|
13
|
+
icon: h,
|
|
14
|
+
variant: n = "warning",
|
|
15
|
+
acceptLabel: f,
|
|
16
|
+
rejectLabel: v,
|
|
17
|
+
onAccept: u,
|
|
18
|
+
onReject: c,
|
|
19
|
+
closeOnOverlay: g = !1,
|
|
20
|
+
closeOnEscape: l = !0,
|
|
21
|
+
size: p = "md",
|
|
22
|
+
className: w,
|
|
23
|
+
style: y
|
|
24
|
+
}) => {
|
|
25
|
+
const { t: s } = C();
|
|
26
|
+
if (m.useEffect(() => {
|
|
27
|
+
if (!i || !l)
|
|
28
|
+
return;
|
|
29
|
+
const r = (b) => {
|
|
30
|
+
b.key === "Escape" && c();
|
|
31
|
+
};
|
|
32
|
+
return document.addEventListener("keydown", r), () => document.removeEventListener("keydown", r);
|
|
33
|
+
}, [i, l, c]), m.useEffect(() => (i ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
|
|
34
|
+
document.body.style.overflow = "";
|
|
35
|
+
}), [i]), !i)
|
|
36
|
+
return null;
|
|
37
|
+
const d = h ?? z[n], _ = f ?? s("confirm.accept", "Yes"), N = v ?? s("confirm.reject", "No");
|
|
38
|
+
return /* @__PURE__ */ e("div", { className: "nice-modal-overlay", onClick: g ? c : void 0, children: /* @__PURE__ */ t(
|
|
39
|
+
"div",
|
|
40
|
+
{
|
|
41
|
+
className: `nice-confirm nice-confirm--${n} nice-confirm--${p} ${w || ""}`,
|
|
42
|
+
style: y,
|
|
43
|
+
role: "alertdialog",
|
|
44
|
+
"aria-modal": "true",
|
|
45
|
+
"aria-label": o,
|
|
46
|
+
"aria-describedby": "nice-confirm-message",
|
|
47
|
+
onClick: (r) => r.stopPropagation(),
|
|
48
|
+
children: [
|
|
49
|
+
o && /* @__PURE__ */ e("div", { className: "nice-confirm__header", children: /* @__PURE__ */ e("h3", { className: "nice-confirm__title", children: o }) }),
|
|
50
|
+
/* @__PURE__ */ t("div", { className: "nice-confirm__body", children: [
|
|
51
|
+
d && /* @__PURE__ */ e("div", { className: `nice-confirm__icon nice-confirm__icon--${n}`, children: d }),
|
|
52
|
+
/* @__PURE__ */ e("div", { id: "nice-confirm-message", className: "nice-confirm__message", children: a })
|
|
53
|
+
] }),
|
|
54
|
+
/* @__PURE__ */ t("div", { className: "nice-confirm__footer", children: [
|
|
55
|
+
/* @__PURE__ */ e(
|
|
56
|
+
"button",
|
|
57
|
+
{
|
|
58
|
+
type: "button",
|
|
59
|
+
className: "nice-btn nice-btn--ghost nice-btn--md",
|
|
60
|
+
onClick: c,
|
|
61
|
+
children: N
|
|
62
|
+
}
|
|
63
|
+
),
|
|
64
|
+
/* @__PURE__ */ e(
|
|
65
|
+
"button",
|
|
66
|
+
{
|
|
67
|
+
type: "button",
|
|
68
|
+
className: `nice-btn nice-btn--${n === "error" ? "error" : "primary"} nice-btn--md`,
|
|
69
|
+
onClick: u,
|
|
70
|
+
autoFocus: !0,
|
|
71
|
+
children: _
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
] })
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
) });
|
|
78
|
+
};
|
|
79
|
+
export {
|
|
80
|
+
E as N
|
|
81
|
+
};
|